<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <a class="uk-button uk-button-primary" href="{url('index')}"> 返回列表</a>
    </div>
    <div class="page-action">
        <a class="uk-button uk-button-danger" href="javascript:location.reload();"><i class="fa fa-refresh"></i></a>
    </div>
</div>

<div class="uk-margin-top">
    <div class="uk-card uk-card-default uk-card-small dux-panel">
        <div class="uk-card-header">{$assignName}自提点</div>
        <div class="uk-card-body">
            <form class="dux-form uk-form   uk-form-horizontal " data-dux="form-bind" method="post">
                <fieldset>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">名称</label>
                        <div class="uk-form-controls">
                            <input type="text" name="name" value="{$info.name}" placeholder="自提点名称" required>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">自提点地区</label>
                        <div class="uk-form-controls" data-dux="form-location">

                            <div class="uk-grid uk-child-width-expand">
                                <div>
                                    <select name="province" data-province="{$info.province}"></select>
                                </div>
                                <div>
                                    <select name="city" data-city="{$info.city}"></select>
                                </div>
                                <div>
                                    <select name="region" data-district="{$info.region}"></select>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">自提点地址</label>
                        <div class="uk-form-controls">
                            <input type="text" name="address" value="{$info.address}" placeholder="自提点详细地址" >
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">自提点电话</label>
                        <div class="uk-form-controls">
                            <input type="text" name="tel" value="{$info.tel}" placeholder="自提点联系电话" >
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">营业时间</label>
                        <div class="uk-form-controls">
                            <div class="uk-input-group">
                                <input class="uk-form-field" type="time" name="start_time"  value="{$info.start_time}">
                                <span class="uk-input-group-label">至</span>
                                <input class="uk-form-field" type="time" name="stop_time"  value="{$info.stop_time}">
                            </div>
                        </div>
                    </div>


                    <div class="uk-form-group">
                        <label class=" uk-form-label">状态</label>
                        <div class="uk-form-controls uk-form-controls-text">
                            <?php $info['status'] = isset($info['status']) ? $info['status'] : 1;  ?><div class="uk-grid">
                            <label>
                                <!--if{$info['status']}-->
                                <input name="status" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <input name="status" value="1" type="radio">
                                <!--{/if}-->
                                正常
                            </label>
                            <label>
                                <!--if{!$info['status']}-->
                                <input name="status" checked="checked" value="0" type="radio">
                                <!--{else}-->
                                <input name="status" value="0" type="radio">
                                <!--{/if}-->
                                关闭
                            </label>
                        </div></div>
                    </div>

                    <div class="uk-form-group">
                        <div class="uk-form-controls">
                            <input type="hidden" name="take_id" value="{$info.take_id}">
                            <button class="uk-button uk-button-primary" type="submit" disabled>保存</button>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>